import React from 'react'

export default class Title extends React.Component {

  // static defaultProps={
  //   name:'默认标题'
  // }

  render() {
    return (
      <div>
        title: { this.props.name}-{this.props.age}
        <br></br>
        {this.props.children}
      </div>
    )
  }
}

Title.defaultProps={
  name:"默认标题"
}

